<?php
namespace Application\Model;

class Cities
{	
	public $city_id;
	public $city_name;
	public $country_id;
	public $state_id;
	public $status;
	public $name;
	public $cuStatus;
	public function exchangeArray($data)
	{
		$this->city_id     	= (isset($data['city_id']))     ? $data['city_id']     	: null;
        $this->city_name 	= (isset($data['city_name'])) 	? $data['city_name'] 	: null;
        $this->country_id  	= (isset($data['country_id']))  ? $data['country_id']  	: null;
		$this->state_id  	= (isset($data['state_id']))    ? $data['state_id']  	: null;
		$this->status  		= (isset($data['status']))  	? $data['status']  		: null;
		$this->name  		= (isset($data['name']))  	    ? $data['name']  		: null;
		$this->cuStatus  	= (isset($data['cuStatus']))  	? $data['cuStatus']  	: null;
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}